package org.sws.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ResponseCode {

    SUCCESS("0000", "成功"),
    UN_ERROR("0001", "服务器开小差,请联系运营或客服"),
    ILLEGAL_PARAMETER("0002", "非法参数"),
    INDEX_DUP("0003", "唯一索引冲突"),
    RATE_LIMITER("0005", "访问限流拦截"),
    HYSTRIX("0006", "访问熔断拦截"),
    STRATEGY_IS_NULL("ERR_BIZ_001","策略未配置,请联系管理员配置"),
    STRATEGY_RULE_WEIGHT_IS_NULL("ERR_BIZ_002", "业务异常，策略规则中 rule_weight 权重规则已适用但未配置"),
    ACTIVITY_COUNT_OVER("ERR_BIZ_003", "活动库存不足"),
    ACTIVITY_STATE_ERROR("ERR_BIZ_004", "活动未开启（非open状态）"),
    ACTIVITY_DATE_ERROR("ERR_BIZ_005", "当前时间非活动日期"),
    ACCOUNT_QUOTA_ERROR("ERR_BIZ_006","账户总额度不足"),
    ACCOUNT_MONTH_QUOTA_ERROR("ERR_BIZ_007","账户月额度不足"),
    ACCOUNT_DAY_QUOTA_ERROR("ERR_BIZ_008","账户日额度不足"),
    UN_ASSEMBLED_STRATEGY_ARMORY("ERR_BIZ_009", "抽奖策略配置未装配，请联系运营完成装配"),
    ACTIVITY_NOT_EXIST("ERR_BIZ_010", "活动不存在"),
    ACTIVITY_ORDER_ERROR("ERR_BIZ_011", "抽奖单订单不存在"),
    CREDIT_ACCOUNT_SURPLUS_ERROR("ERR_BIZ_012", "用户积分账户可用额度不足"),
    DEGRADE_SWITCH("degrade_switch", "活动已降级");

    ;

    private String code;
    private String info;

}
